package com.day21.test1;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class test {

    public static void main(String[] args) {
        ApplicationContext a=new ClassPathXmlApplicationContext("application.xml");

        user u=a.getBean("user",user.class);

        System.out.println(u.getUsername()+"-->"+u.getPassword());



    }

}
